<?php

namespace App\Http\Controllers;

class BaseController extends Controller
{
    /**
     * 响应输出
     * @param array $data 响应数据
     * @return string
     */
    public function response( $data )
    {
        return response()->json( [ 'code' => 0, 'message' => 'success', 'result' => $data ] );
    }
}
